/**
 * @author Haidar Osman
 */
var Class = function(name)
{
	
	this.name=name;
	this.methods = new MemberArray("methods");
	this.attributes = new MemberArray("attributes");
	// this.outgoingRelations = new RelationObjArray();
	// this.incomingRelations = new RelationObjArray();
	var that=this;
	this.getJSON=function()
	{
		var classJSON={
			name:that.name,
			atts:[],
			methods:[]
		};
		
		var i=0;
		for(i=0;i<that.methods.members.length;i++)
		{
			classJSON.methods[i]=that.methods.members[i].getJSON();
		}
		for(i=0;i<that.attributes.members.length;i++)
		{
			classJSON.atts[i]=that.attributes.members[i].getJSON();
		}
		return classJSON;
	}
}
